<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <script type="text/javascript" src="../../include-all.js">
        </script>
        <script type="text/javascript">
            var view = new dorado.widget.View({ layout: "Anchor" });
            
            var json = Test.getJSON(Test.ROOT + "resource/hr-data.js");
            var departments = new dorado.EntityList(json, view.dataTypeRepository, getDepartmentsDataType());
            var ds1 = new dorado.widget.DataSet({
            	data: departments
            });
            view.addChild(ds1);
            
            var toolbar = new dorado.widget.ToolBar({
				items: [{
					$type: "DataPilot",
					dataSet: ds1,
					itemCodes: "pages,|,+,-,x"
				}]
            });
            view.addChild(toolbar);
			
            var grid1 = new dorado.widget.DataGrid({
            	id: "grid1",
            	width: "25%",
            	height: 80,
            	dataSet: ds1,
            	appendOnLastEnter: true
            });
            view.addChild(grid1);
           
            $(document).ready(function() {
            	view.render(document.body);
            });
        </script>
    </head>
    <body></body>
</html>